﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Web;
using System.Web.Security;
using Htss.Platform.Web;

namespace DreamBox.Web.Box.user
{
    public class launchBox:ControllerBox
    {
        public ActionResult Load()
        {
            int p = Request.QueryString["p"] != null ? Htss.Platform.Core.Transform.GetInt(Request.QueryString["p"], 1) : 1;
            //
            DAL.Posts.Reply posts = new DAL.Posts.Reply();
            //
            DAL.GetPager page = new DAL.GetPager();
            page.PageSize = 10;
            string where = "LaunchUser=" + Session["UserID"].ToString();
            ViewDbTable["ListData"] = page.GetPageData(p, "dbox_v_userfriendslaunch", "LaunchID", where, 1);
            ViewData["ListPage"] = page.GetPage(p, where, "dbox_v_userfriendslaunch", "LaunchID", "/user/launch")[0];
            return View("user_launch");
        }
    }
}
